﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;

namespace DotNetNuke.Modules.ActiveForums
{
	public class ProfileBase : SettingsBase
	{
		private int _UID = -1;
		private UserProfileInfo _userProfile;
		public UserProfileInfo UserProfile
		{
			get
			{
				return _userProfile;
			}
			set
			{
				_userProfile = value;
			}
		}
		public int UID
		{
			get
			{
				if (Request.Params["UID"] != null)
				{
					if (SimulateIsNumeric.IsNumeric(Request.Params["UID"]))
					{
						_UID = Convert.ToInt32(Request.Params["UID"]);
					}
				}
				else
				{
					_UID = UserId;
				}
				return _UID;
			}
		}

	}
}
